<?php
use app\modules\clinical\models\Patient;
use app\modules\clinical\models\ExcelFcmte;

$params = ExcelFcmte::getParams();
?>

  <!-- 第二部分 -->
  <tr class="title">
      <td colspan="6"><h4>一、患者信息与表格信息</h4></td>
  </tr>
  <tr>
      <th>姓名</th>
      <td><?= ($model->rel_id == 0) ? Yii::$app->session->get('pt_name') : Patient::findOne(['pk_id'=>$model->pt_id])->pt_name ?></td>
      <th>与患者关系</th>
      <td colspan="3"><?= ($model->rel_id == 0) ? '本人' : Patient::getParams('relation')[$rel[$model->pt_id]] ?></td>
  </tr>
  <tr>
      <th>创建人</th>
      <td><?= $model->crt_name ?></td>
      <th>创建时间</th>
      <td colspan="3"><?= $model->crt_time ?></td>
  </tr>
  <tr>
      <th>修改人</th>
      <td><?= $model->update_name ?></td>
      <th>修改时间</th>
      <td colspan="3"><?= $model->update_at ?></td>
  </tr>
  <tr class="title">
      <td colspan="5"><h4>二、病史资料</h4></td>
  </tr>
  <tr>
      <th width="230px">发病年龄</th>
      <td><?= $model->excel->pt_age ?></td>
      <th>现病史</th>
      <td colspan="2"><?= $model->excel->pt_history ?></td>
  </tr>
  <tr>
      <th rowspan="4">震颤</th>
      <th>早期症状——震颤和癫痫的发作顺序</th>
      <td><?= $params['lc_order'][$model->excel->lc_order] ?></td>
      <th>震颤最早发病年龄</th>
      <td><?= $model->excel->lc_zhen_age ?></td>
  </tr>
  <tr>
      <th>震颤开始的部位</th>
      <td><?= $params['lc_body'][$model->excel->lc_body] ?></td>
      <th>后逐渐累积到何处</th>
      <td><?= $model->excel->lc_body_order ?></td>
  </tr>
  <tr>
      <th>震颤类型</th>
      <td><?= $params['lc_type'][$model->excel->lc_type] ?></td>
      <th>何种情况下引起震颤或使其加重</th>
      <td><?= $params['lc_zhen_severe'][$model->excel->lc_zhen_severe] ?></td>
  </tr>
  <tr>
      <th>有无用抗癫痫药</th>
      <td><?= $params['youwu'][$model->excel->lc_isMed] ?></td>
      <th>用抗癫痫药后震颤情况</th>
      <td><?= $params['lc_afterMed'][$model->excel->lc_afterMed] ?></td>
  </tr>
  <tr>
      <th rowspan="8">癫痫</th>
      <th>癫痫最早发病年龄</th>
      <td><?= $model->excel->lc_xian_age ?></td>
      <th>何种情况下引起癫痫或使其加重</th>
      <td><?= $params['lc_zhen_severe'][$model->excel->lc_xian_severe] ?></td>
  </tr>
  <tr>
      <th>每次发作类型、次数（每次都记录清楚）</th>
      <td colspan="3"><?= $model->excel->lc_fazuo ?></td>
  </tr>
  <tr>
      <th>发作有无先兆</th>
      <td colspan="3"><?= $model->excel->lc_xianzhao ?></td>
  </tr>
  <tr>
      <th>使用何种药物及控制情况（既往和现在用药情况）</th>
      <td colspan="3"><?= $model->excel->lc_yongyao ?></td>
  </tr>
  <tr>
      <th>缺少睡眠、声光刺激、疼痛刺激能否诱发发作</th>
      <td><?= $model->excel->lc_youfa ?></td>
      <th>有无认知功能减退——智能障碍MMSE评分</th>
      <td><?= $model->excel->lc_mmse ?></td>
  </tr>
  <tr>
      <td colspan="4">
      <b>有无周期性僵直状态（即突然出现的短暂不动伴四肢僵硬状态）</b>: <?= $params['youwu'][$model->excel->lc_jiangzhi] ?>&nbsp;&nbsp;
      <b>夜盲</b>: <?= $params['youwu'][$model->excel->lc_yemang] ?>&nbsp;&nbsp;
      <b>偏头痛</b>: <?= $params['youwu'][$model->excel->lc_piantout] ?>
      </td>
  </tr>
  <tr>
      <th>如果有偏头痛的话：是否伴肌阵挛</th>
      <td><?= $params['youwu'][$model->excel->lc_jizhenl] ?></td>
      <th>肌阵挛和偏头痛都在用抗癫痫药后是否好转</th>
      <td><?= $params['youwu'][$model->excel->lc_better] ?></td>
  </tr>
  <tr>
      <th>汉米尔顿抑郁量表评分</th>
      <td><?= $model->excel->lc_hanm_yiyu ?></td>
      <th>汉米尔顿焦虑量表评分</th>
      <td><?= $model->excel->lc_hanm_jiaolv ?></td>
  </tr>
  <tr class="title">
      <td colspan="5"><h4>三、体征</h4></td>
  </tr>
  <tr>
      <th rowspan="2">肌力</th>
      <th>左上肢</th>
      <td><?= $model->excel->bd_jili_lu ?></td>
      <th>左下肢</th>
      <td><?= $model->excel->bd_jili_ld ?></td>
  </tr>
  <tr>
      <th>右上肢</th>
      <td><?= $model->excel->bd_jili_ru ?></td>
      <th>右下肢</th>
      <td><?= $model->excel->bd_jili_rd ?></td>
  </tr>
  <tr>
      <th rowspan="2">肌张力</th>
      <th>左上肢</th>
      <td><?= $params['jizhangli'][$model->excel->bd_jiz_lu] ?></td>
      <th>左下肢</th>
      <td><?= $params['jizhangli'][$model->excel->bd_jiz_ld] ?></td>
  </tr>
  <tr>
      <th>右上肢</th>
      <td><?= $params['jizhangli'][$model->excel->bd_jiz_ru] ?></td>
      <th>右下肢</th>
      <td><?= $params['jizhangli'][$model->excel->bd_jiz_rd] ?></td>
  </tr>
  <tr>
      <th rowspan="4">腱反射</th>
      <th>肱二头肌反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_er] ?></td>
      <th>肱三头肌反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_san] ?></td>
  </tr>
  <tr>
      <th>桡骨膜</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_rao] ?></td>
      <th>膝反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_xi] ?></td>
  </tr>
  <tr>
      <th>踝反射</th>
      <td><?= $params['jianfan'][$model->excel->bd_fanshe_huai] ?></td>
      <th>髌阵挛</th>
      <td><?= $params['jianfan'][$model->excel->bd_zhen_bin] ?></td>
  </tr>
  <tr>
      <th>踝阵挛</th>
      <td colspan="3"><?= $params['jianfan'][$model->excel->bd_zhen_huai] ?></td>
  </tr>
  <tr>
      <th>病理征</th>
      <td colspan="2"><?= $params['yinyang'][$model->excel->bd_bingli] ?></td>
      <th>Hoffman征</th>
      <td><?= $params['yinyang'][$model->excel->bd_hoffman] ?></td>
  </tr>
  <tr>
      <th>感觉障碍（有无痛触觉障碍）</th>
      <td colspan="4"><?= $params['youwu'][$model->excel->bd_zhangai] ?></td>
  </tr>
  <tr>
      <th>下肢振动觉</th>
      <td colspan="2"><?= $params['xiazhi_zhen'][$model->excel->bd_xiazhi_zhen] ?></td>
      <th>下肢关节位置觉</th>
      <td><?= $params['xiazhi_zhen'][$model->excel->bd_xiazhi_wei] ?></td>
  </tr>
  <tr>
      <th>锥体外系</th>
      <td colspan="4"><?= $model->excel->bd_zhuiti ?></td>
  </tr>
  <tr>
      <th rowspan="2">共济运动</th>
      <th>指鼻试验</th>
      <td><?= $params['zhibi'][$model->excel->bd_gg_zhibi] ?></td>
      <th>跟膝胫试验</th>
      <td><?= $params['yinyang'][$model->excel->bd_gg_genxi] ?></td>
  </tr>
  <tr>
      <th>Romberg征</th>
      <td><?= $params['yinyang'][$model->excel->bd_gg_romberg] ?></td>
      <th>一字步</th>
      <td><?= $params['yizi'][$model->excel->bd_gg_yizi] ?></td>
  </tr>
  <tr>
      <th>植物神经功能检查（有无大小便障碍）</th>
      <td colspan="4"><?= $model->excel->bd_shenjing ?></td>
  </tr>
  <tr>
      <th>肌萎缩（近端及远端）</th>
      <td colspan="2"><?= $params['youwu'][$model->excel->bd_weisuo_ji] ?></td>
      <th>弓形足</th>
      <td><?= $params['youwu'][$model->excel->bd_gongxing] ?></td>
  </tr>
  <tr>
      <th>步态</th>
      <td colspan="2"><?= $model->excel->bd_butai ?></td>
      <th>视神经萎缩</th>
      <td><?= $params['youwu'][$model->excel->bd_weisuo_shi] ?></td>
  </tr>
  <tr>
      <th>视网膜色素变性</th>
      <td colspan="2"><?= $params['youwu'][$model->excel->bd_sesu] ?></td>
      <th>构音障碍</th>
      <td><?= $params['youwu'][$model->excel->bd_gouyin] ?></td>
  </tr>
  <tr>
      <th>失语</th>
      <td colspan="2"><?= $params['youwu'][$model->excel->bd_shiyu] ?></td>
      <th>眼震</th>
      <td><?= $params['youwu'][$model->excel->bd_yanzhen] ?></td>
  </tr>
  <tr>
      <th>痴呆（智能检查：包括智力、定向力、记忆力）</th>
      <td colspan="4"><?= $model->excel->bd_chidai ?></td>
  </tr>
  <tr>
      <th>其他：皮肤病变（有无鱼鳞病、干皮病、皮肤色素减退）</th>
      <td colspan="4"><?= $model->excel->bd_else ?></td>
  </tr>
  <tr>
      <th>生长发育（有无身材矮小、骨骼畸形、脊柱侧弯等）</th>
      <td colspan="4"><?= $model->excel->bd_fayu ?></td>
  </tr>
